//package cn.com.xinjinfu.pdoulcProduct.activity.Fixed;
//
//import android.os.Bundle;
//import android.support.v4.view.ViewPager;
//import android.view.View;
//import android.widget.LinearLayout;
//import android.widget.TextView;
//
//import cn.com.xinjinfu.pdoulcProduct.R;
//import cn.com.xinjinfu.pdoulcProduct.activity.base.BaseActivity;
//import cn.com.xinjinfu.pdoulcProduct.adapter.PagerAdapter;
//import cn.com.xinjinfu.pdoulcProduct.manager.L;
//import cn.com.xinjinfu.pdoulcProduct.manager.TitleManager;
///**
// * 定期理财列表
// * Created by android-adt on 2015/12/31.
// */
//public class FixedFinancaialAct extends BaseActivity {
//    private int x;
//    private ViewPager mViewPager;
//    private LinearLayout ll_blell_title1,ll_blell_title2;
//    private PagerAdapter mPagerAdapter;
//    private TextView anyoneTransfer,tv_my_newproject;
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.act_fixe_financial);
//        //初始化头布局
//        TitleManager.showTitle(this, "定期理财", "");
//        Bundle bundle = new Bundle();
//        bundle = this.getIntent().getExtras();
//        x = bundle.getInt("x");
//        initView();
//    }
//
//    private void initView() {
//        ll_blell_title1 = (LinearLayout) findViewById(R.id.ll_blell_title1);
//        ll_blell_title2 = (LinearLayout) findViewById(R.id.ll_blell_title2);
//        ll_blell_title1.setVisibility(View.VISIBLE);
//        ll_blell_title2.setVisibility(View.GONE);
//        mViewPager = (ViewPager)findViewById(R.id.view_pager);
//        mPagerAdapter = new PagerAdapter(this);
//        mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
//            @Override
//            public void onPageSelected(int position) {
//                super.onPageSelected(position);
//                L.d("position=============++++" + position);
//                if (position == 0) {
//                    ll_blell_title1.setVisibility(View.VISIBLE);
//                    ll_blell_title2.setVisibility(View.GONE);
//                }else if (position == 1) {
//                    ll_blell_title2.setVisibility(View.VISIBLE);
//                    ll_blell_title1.setVisibility(View.GONE);
//                }
//            }
//        });
//        mPagerAdapter.addTab(NewProjectFragment.class, null);
//        mPagerAdapter.addTab(TransferorFragment.class, null);
//        mViewPager.setAdapter(mPagerAdapter);
//        mViewPager.setCurrentItem(x, true);
//        anyoneTransfer = (TextView) findViewById(R.id.tv_anyone_transfer);
//        anyoneTransfer.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                mViewPager.setCurrentItem(1, true);
//            }
//        });
//        tv_my_newproject = (TextView) findViewById(R.id.tv_my_newproject);
//        tv_my_newproject.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                mViewPager.setCurrentItem(0, true);
//            }
//        });
//    }
//}
